﻿<%@ Page Language="C#" MasterPageFile="~/IPMSMasterPage.master" AutoEventWireup="true" CodeFile="SysLogs.aspx.cs" Inherits="SysLogs" Title="Project Monitoring System" Culture="Auto:en-US" UICulture="auto" meta:resourcekey="PageResource1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server" Visible="false"/>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <div style="margin-left:10px;margin-right:10px;">
        <asp:Panel ID="Panel2" runat="server" DefaultButton="btnSearch" meta:resourcekey="Panel2Resource1" HorizontalAlign="Left">
			<cc1:CalendarExtender ID="caldatefrom" runat="server" TargetControlID="txtDateFrom" Enabled="True" Format="yyyy-MM-dd"/>
			<cc1:CalendarExtender ID="caldateto" runat="server" TargetControlID="txtDateTo" Enabled="True" Format="yyyy-MM-dd"/>
			<fieldset>
                <legend>
                    <asp:Label ID="lblSearch" runat="server" Text="Search" meta:resourcekey="lblSearchResource1"/>
                </legend>
                <table>
                    <tr>
                        <td>
                            <asp:Label ID="lblFunctionId" runat="server" Text="Function ID" meta:resourcekey="lblFunctionIdResource1"/>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlFunctionId" runat="server" Width="200px"/>
                        </td>
                        <td>
                            <asp:Label ID="lblDateFrom" runat="server" Text="Date From" meta:resourcekey="lblDateFromCodeResource1"/>
                        </td>
                        <td>
                            <asp:TextBox ID="txtDateFrom" runat="server" Width="147px" MaxLength="30"/>
                        </td>
                        <td>
                            <asp:Label ID="lblDateto" runat="server" Text="To" meta:resourcekey="lblDateToResource1"/>
                        </td>
                        <td>
                            <asp:TextBox ID="txtDateTo" runat="server" Width="147px" MaxLength="30"/>
                        </td>
                        <td>
                            <asp:Button ID="btnSearch" runat="server" CssClass="submit" meta:resourcekey="btnSearchResource1" OnClick="btnSearch_Click" Text="Search" Width="86px" Height="23px" />
                        </td>
                    </tr>
                </table>
			</fieldset>
        </asp:Panel>
        <br />
        <asp:GridView CssClass="Grid" ID="gvResults" runat="server" 
				BackColor="#DEBA84" 
				BorderColor="#660000"
				BorderStyle="Solid" 
				BorderWidth="1px" 
				CellPadding="0" 
				CellSpacing="0" 
				Width="100%"
				AllowPaging="True" 
				PageSize="20" 
				AllowSorting="True" 
				AutoGenerateColumns="False"
				onpageindexchanging="gvResults_PageIndexChanging">
            <Columns>
                <asp:BoundField DataField="FunctionName" HeaderText="Function" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource1"/>
                <asp:BoundField DataField="LogUser" HeaderText="User" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource2"/>
                <asp:BoundField DataField="UserType" HeaderText="User Group" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource3"/>
                <asp:BoundField DataField="LogData" HeaderText="Message" HeaderStyle-Width="400px" meta:resourcekey="BoundFieldResource4"/>
                <asp:BoundField DataField="Status" HeaderText="Status" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource6"/>
                <asp:BoundField DataField="LogIP" HeaderText="IP Address" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource7"/>
                <asp:BoundField DataField="LogTime" HeaderText="Date" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HtmlEncode="False" HeaderStyle-Width="150px" meta:resourcekey="BoundFieldResource8"/>
            </Columns>
            <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
            <RowStyle CssClass="GridRowStyle" />
            <AlternatingRowStyle CssClass="GridAltRowStyle" />
            <SelectedRowStyle CssClass="GridSelectedRowStyle" />
            <PagerStyle CssClass="GridPagerStyle" ForeColor="White" />
            <FooterStyle CssClass="GridFooterStyle" />
        </asp:GridView>
    </div>
</asp:Content>

